<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAiScoreRuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ai_score_rule', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("score")->default(0)->comment("分数");
            $table->string("name")->nullable()->comment("名称");
            $table->string("name_str")->nullable()->comment("名称");
            $table->string("type")->nullable()->comment("类型");
            $table->string("type_str")->nullable()->comment("类型标识");
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ai_score_rule');
    }
}
